@extends('layout.admin')
@section('content')
<style type="text/css">
	.glyphicon{
		margin-left:10px;
	}
	table{
		text-align:center;
	}
</style>
<div class="bs-example4 col-md-8 col-md-offset-2" data-example-id="simple-responsive-table">
	<h3 class="blank1">Basic Tables</h3>		
		<div class="table-responsive">
		  <table class="table table-bordered">
			<thead>
			  <tr>
				<th>ID</th>
				<th>分类名称</th>
				<th>父类名称</th>
				<th>操作</th>
			  </tr>
			</thead>
			@foreach($cate as $k=>$v)
			<tbody>
			  <tr>
				<th scope="row">{{$v->id}}</th>
				<td>{{$v->name}}</td>
				<td>{{$v->path}}</td>
				<td style="width:200px;">
				<span class="glyphicon glyphicon-pencil"> 修改</span>
				<span class="glyphicon glyphicon-trash"> 删除</span>
				</td>
			  </tr>
			</tbody>
			@endforeach
		  </table>
		</div><!-- /.table-responsive -->
		</div>

@endsection